<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base>

		<title>SP基础信息详情查看</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>
	<script type="text/javascript" src="<s:url value="/script/easyajax.js"/>"></script>
		<script type="text/javascript" src="<s:url value="/script/md5.js"/>"></script>
<script>
var data = window.dialogArguments.data;
function showDetail(){
    var ptId="";
    var datetime=showtime();
    var ssostr=datetime;
    var pt=window.dialogArguments.document.getElementById("pt");
    for(i=0;i<pt.options.length;i++){
    	if(pt.options[i].text==$$(data,"fieldValue",2)){
	    	ptId=pt.options[i].value;
	    	break;
    	}
    }
    ssostr+="SPCODE"+$$(data,"fieldValue",1)+"PLATFORM"+ptId+"${user.userID}".toUpperCase();
    //alert(ssostr);
    ssostr=hex_md5(ssostr);
	var url="${url}";
	url+="?spCode="+$$(data,"fieldValue",1);
	url+="&platformId="+ptId;
	url+="&userID="+"${user.userID}";
	url+="&sso="+ssostr.toUpperCase();
	//alert(url);
    spDetail.window.location=url;
}
function showtime()
{
	var today,hour,second,minute,year,month,date;
	today=new Date();
	year = today.getYear()+"";
	month = today.getMonth()+1+"";
	date = today.getDate()+"";
	if(month.length==1){
		month="0"+month;
	}
	if(year.length==1){
		year="0"+year;
	}
	if(date.length==1){
		date="0"+date;
	}
	return year + "-" + month + "-" + date;
}
</script>

	<body onload="showDetail()">
		<table id="spDetailTable" height="100%" width="100%" border="0" cellspacing="0"
			cellpadding="0" align="center">
			<tr valign="top">
				<td>
					<iframe id="spDetail" name="spDetail" 
						src="" frameborder="0" width="100%" height="100%"></iframe>
				</td>
			</tr>
		</table>
	</body>
</html>
